<?php

namespace App\BO\OrderStatus\Events;

use App\BO\OrderStatus\Meta\UserCancelInfo;
use App\Entities\OrderEntity;

/**
 * 用户取消订单
 * Class OrderUserCancelEvent
 * @package App\Events\Order
 */
class OrderUserCancelEvent extends ABaseOrderEvent
{
    /**
     * @var UserCancelInfo
     */
    private $userCancelInfo;

    public function __construct(OrderEntity $orderEntity, UserCancelInfo $userCancelInfo)
    {
        parent::__construct($orderEntity);

        $this->userCancelInfo = $userCancelInfo;
    }

    /**
     * @return UserCancelInfo
     */
    public function getUserCancelInfo(): UserCancelInfo
    {
        return $this->userCancelInfo;
    }
}
